<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8" name="referrer" content="no-referrer">
    <title>注册</title>
    <link rel="stylesheet" th:href="@{/css/bootstrap.min.css}">
    <link rel="stylesheet" th:href="@{/css/bootstrapValidator.min.css}">
    <link rel="stylesheet" th:href="@{/css/blog.css}">
</head>
<body>
<a href="javascript:history.go(-1);" class="btn btn-default btn-xs" style="position: absolute">返回上一级</a>
<div class="container">
    <form class="form-signin" action="/user/register" method="post">
        <h2 class="form-signin-heading text-center">注册</h2>
        <div class="form-group">
            <label for="username">用户名</label>
            <input type="text" id="username" class="form-control" name="username" placeholder="用户名">
        </div>
        <div class="form-group">
            <label for="password">密码</label>
            <input type="password" id="password" class="form-control" name="password" placeholder="密码">
        </div>
        <div class="form-group">
            <label for="repassword">再次输入密码</label>
            <input type="password" id="repassword" class="form-control" name="repassword" placeholder="再次输入密码">
        </div>
        <button class="btn btn-lg btn-primary btn-block gradual-bg" type="submit">注 册</button>
    </form>

    <div id="msgAlert" th:if="${msg ne '' and msg ne null}" class="alert alert-danger alert-dismissible" role="alert">
        <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span
                aria-hidden="true">&times;</span></button>
        <strong th:text="${msg}"></strong>
    </div>
</div>
<script th:src="@{/js/jquery.min.js}"></script>
<script th:src="@{/js/bootstrap.min.js}"></script>
<script th:src="@{/js/bootstrapValidator.min.js}"></script>
<script th:src="@{/js/all.js}"></script>
<script>
    $(function () {
        //登录注册
        formValidation();
    });
</script>
</body>
</html>